package org.apache.ws.axis2;

public class ValidacaoCreditoServicePortTypeProxy implements org.apache.ws.axis2.ValidacaoCreditoServicePortType {
  private String _endpoint = null;
  private org.apache.ws.axis2.ValidacaoCreditoServicePortType validacaoCreditoServicePortType = null;
  
  public ValidacaoCreditoServicePortTypeProxy() {
    _initValidacaoCreditoServicePortTypeProxy();
  }
  
  public ValidacaoCreditoServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initValidacaoCreditoServicePortTypeProxy();
  }
  
  private void _initValidacaoCreditoServicePortTypeProxy() {
    try {
      validacaoCreditoServicePortType = (new org.apache.ws.axis2.ValidacaoCreditoServiceLocator()).getValidacaoCreditoServiceHttpSoap11Endpoint();
      if (validacaoCreditoServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)validacaoCreditoServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)validacaoCreditoServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (validacaoCreditoServicePortType != null)
      ((javax.xml.rpc.Stub)validacaoCreditoServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.apache.ws.axis2.ValidacaoCreditoServicePortType getValidacaoCreditoServicePortType() {
    if (validacaoCreditoServicePortType == null)
      _initValidacaoCreditoServicePortTypeProxy();
    return validacaoCreditoServicePortType;
  }
  
  public org.apache.ws.axis2.xsd.ServiceResponse getScore(java.lang.Long cpf, java.lang.String token) throws java.rmi.RemoteException{
    if (validacaoCreditoServicePortType == null)
      _initValidacaoCreditoServicePortTypeProxy();
    return validacaoCreditoServicePortType.getScore(cpf, token);
  }
  
  public java.lang.Integer multiplicacao(java.lang.Integer um, java.lang.Integer dois) throws java.rmi.RemoteException{
    if (validacaoCreditoServicePortType == null)
      _initValidacaoCreditoServicePortTypeProxy();
    return validacaoCreditoServicePortType.multiplicacao(um, dois);
  }
  
  
}